package admin

import (
	"core/repo"
	"gate/api/admin"

	"github.com/gin-gonic/gin"
)

func NewGameRouter(r *gin.Engine, repo *repo.Manager) {
	group := r.Group("game")
	game := admin.NewGameApi(repo)
	// 添加
	group.POST("add", game.Add)
	// 列表
	group.GET("list", game.List)
	// 编辑
	group.POST("edit", game.Edit)
}
